package com.zrc.superframe_tbs

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity

/**
 * @Author: superman
 * @CreateTime: 6/27/21
 * @Describe:文件打开阅读页面
 */
class FileReaderActivity : AppCompatActivity() {

    var path: String = ""

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_filereader)
        path = intent.getStringExtra("path") ?: ""
        supportFragmentManager.beginTransaction().replace(R.id.relativeLayout, FileReaderFragment.newInstance(path)).commit()
    }

}